#ifndef _SCREENFADE_H
#define _SCREENFADE_H


#include "objects.h"



class ScreenFade : public Objects
{
public:
	static ScreenFade &getInstance();


	void Fade_Out( );
	void Fade_In( );

//Set parameters for fader
	void Set_Color(sf::Color);
	void Set_FadeSpeed(int);

private:

	static ScreenFade _instance;

	ScreenFade();
	ScreenFade(const ScreenFade &);
	ScreenFade & operator=(const ScreenFade &);


	int faderSpeed;
	//Take shot of the current screen
	sf::Image currentScreen_img;

	sf::Image fade_screen;

	sf::Sprite currentScreen;


	sf::Color fadeColor;
};


#endif
